<template>
  <one-data-com :get-data-fun="getDataFunc" @data="souceFunc">
    <el-input
      class="textarea"
      type="textarea"
      placeholder="请输入内容"
      v-model="textarea"
      show-word-limit
      :rows="30"
    >
    </el-input>
  </one-data-com>
</template>

<script lang="ts">
  import OneDataCom from '@/components/data/oneData/index.vue'
  import { Vue, Component } from 'vue-property-decorator'

  @Component({
    components: {
      OneDataCom
    }
  })
  export default class TextDataModel extends Vue {

    textarea = ''

    souceFunc(data: string) {
      this.textarea = data
    }

    getDataFunc() {
      return this.textarea
    }
  }

</script>

<style scoped>
</style>
